import request from '@/utils/request'

// 添加部门
export const companydepartmentadd = (data) => {
  return request.post('/company/department', data)
}
// 编辑
export const companydepartmentid = (data) => {
  request.put(`/company/department/${data.id}`, data)
}
// 获取部门数据
export const companydepartment = () => {
  return request('/company/department')
}

// 删除部门

export const companydepartmentdel = (id) => {
  request.delete(`/company/department/${id}`)
}
